package com.zhangsun.springShiro.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangsun.springShiro.system.bean.UserEdit;
import com.zhangsun.springShiro.system.bean.UserResult;
import com.zhangsun.springShiro.system.entity.UserEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author zhangsun
 * @since 2019-07-23
 */
public interface UserService extends IService<UserEntity> {

    /**
     * 添加用户
     *
     * @param edit 用户
     */
    void createUser(UserEdit edit);

    /**
     * 创建admin
     */
    void createAdmin();

    UserEntity findByUserNo(String userNo);

    UserResult login(String userNo, String password);

    void logout(HttpServletRequest request);

    List<UserEntity> findAll();
}
